package mygame;

import com.jme3.app.state.AbstractAppState;
import com.jme3.app.state.AppStateManager;

public class PauseInputAppState extends AbstractAppState {
    protected PauseInputHandler inputHandler = new PauseInputHandler();
    
    @Override
    public void stateAttached(AppStateManager stateManager) {
        super.stateAttached(stateManager);
	inputHandler.init(DataStore.inputManager);
    }
    
    @Override
    public void stateDetached(AppStateManager stateManager) {
        super.stateDetached(stateManager);
        DataStore.inputManager.removeListener(inputHandler);
    }
}
